import request from '@/utils/request'

// 查询方案库分类列表
export function listSchemeclassification(query) {
  return request({
    url: '/decision/schemeclassification/list',
    method: 'get',
    params: query
  })
}

// 查询方案库分类详细
export function getSchemeclassification(templatetypeid) {
  return request({
    url: '/decision/schemeclassification/' + templatetypeid,
    method: 'get'
  })
}

// 新增方案库分类
export function addSchemeclassification(data) {
  return request({
    url: '/decision/schemeclassification',
    method: 'post',
    data: data
  })
}

// 修改方案库分类
export function updateSchemeclassification(data) {
  return request({
    url: '/decision/schemeclassification',
    method: 'put',
    data: data
  })
}

// 删除方案库分类
export function delSchemeclassification(templatetypeid) {
  return request({
    url: '/decision/schemeclassification/' + templatetypeid,
    method: 'delete'
  })
}
